﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WeatherClock.Common"
    xmlns:Weather="using:WeatherClock.Controls">

   

    <local:KeyToResourceConverter x:Key="KeyToResourceConverter"/>
    
    <DataTemplate x:Key="WorldClockTemplate">
        <Grid Width="170" Height="450" Background="White">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="15"/>
                <ColumnDefinition/>
                <ColumnDefinition Width="15"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="50"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="8"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="20"/>
            </Grid.RowDefinitions>
            <Path Grid.Column="1" Data="{Binding PathData, Converter={StaticResource KeyToResourceConverter}}" Fill="{Binding PathClr}" Grid.Row="1" Stretch="Fill" HorizontalAlignment="Left" Width="{Binding PWidth}" Height="{Binding PHeight}"/>
        	<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontFamily="Segoe UI" Grid.Row="3" Grid.Column="1" FontSize="30" Foreground="#FFE53725">
        		<Run Text="{Binding Description}"/>
        		<Run FontSize="20" Text="{Binding Hour}"/>
        	</TextBlock>
        	<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontFamily="Segoe UI" Grid.Row="5" Grid.Column="1" FontSize="18" Foreground="#FFB1CFD8" Text="{Binding Subtitle}"/>
        	<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontFamily="Segoe UI" Grid.Row="7" Grid.Column="1" FontSize="18" Foreground="#FFE53725" Text="{Binding Title}"/>
        </Grid>
    </DataTemplate>
    
    
    <DataTemplate x:Key="MoreTemplate">
        <Grid Width="170" Height="170" Background="#FFe53725">
        	<StackPanel Orientation="Vertical" HorizontalAlignment="Center" Margin="0,30,0,0">
        		<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="Add More" VerticalAlignment="Top" FontFamily="Segoe UI" FontSize="24" Margin="0,0,0,36"/>
        		<Path Data="M5.99436,10.792 L7.24988,10.792 L7.24988,14.5963 L11.0636,14.5963 L11.0636,15.8612 L7.24988,15.8612 L7.24988,19.6655 L5.99436,19.6655 L5.99436,15.8612 L2.19007,15.8612 L2.19007,14.5963 L5.99436,14.5963 z" Fill="White" Height="32" RenderTransformOrigin="0.5,0.5" Stretch="Fill" UseLayoutRounding="False" Width="32" Margin="0">
        			<Path.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Path.RenderTransform>
        		</Path>    
           
        	</StackPanel>
        </Grid>
    </DataTemplate>
    
</ResourceDictionary>
